//
//  JournalTableViewCell.m
//  BSLCar
//
//  Created by 梁毅 on 15/5/23.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "JournalTableViewCell.h"

@implementation JournalTableViewCell
- (void)dealloc
{
    [_miamgeView release];
    [_button1 release];
    [_button2 release];
    [_label release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}
- (void)createCell
{
    self.miamgeView = [[UIImageView alloc]init];
    [self.contentView addSubview:self.miamgeView];
    
    self.label = [[UILabel alloc]init];
    [self.contentView addSubview:self.label];
    
    [_miamgeView release];
    [_label release];
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1];
    self.miamgeView.frame = CGRectMake(15, 50, self.frame.size.width - 30, 180);
    self.miamgeView.layer.cornerRadius = 3;
    [self.miamgeView clipsToBounds];
    self.miamgeView.layer.masksToBounds = YES;
    
    self.label.frame = CGRectMake(15, 5, self.frame.size.width - 30, 35);
    self.label.numberOfLines = 0;
    [self.label sizeToFit];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
